package com.springx.examples.showcase.enums;

/**
 * Created by roman_000 on 2015/8/8.
 */
public class BaseEnum {
    public enum DATA_STATUS {
        NORMAL("0", "正常"),
        DELETE("1", "删除");

        private String key;
        private String value;

        DATA_STATUS(String key, String value) {
            this.key = key;
            this.value = value;
        }

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }

    public enum IS_ENABLED {
        ENABLED("1", "启用"),
        DISABLED("0", "禁用");

        private String key;
        private String value;

        IS_ENABLED(String key, String value) {
            this.key = key;
            this.value = value;
        }

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }


}
